<?php

class Province{

	private $color, $name, $current_unit;

	function __construct($color, $name, $current_unit = null){
		$this -> setColor($color);
		$this -> setName($name);
		if($current_unit != null)
			$this -> setCurrent_unit($current_unit);
	}

	function setCurrent_unit($current_unit){
		$this -> current_unit = $current_unit;
	}

	function getCurrent_unit(){
		return $this -> current_unit;
	}

	function setName($name){
		$this -> name = $name;
	}

	function getName(){
		return $this -> name;
	}

	function setColor($color){
		$this -> color = $color;
	}

	function getColor(){
		return $this -> color;
	}

	function __destruct(){
		//add behavior if unit get dispatched
	}
}

?>
